<?php
class labelModel extends baseModel{
    protected $table ='cms_lable';  //模型表
    //删除
    public function Del($fid){
    	return $this->delete('id = '.$fid);  //分类
    }
    //编辑
    public function Save($fid,$data = array()){
        if($fid){
            $condition['id'] = $fid;
            return $this->update($condition,$data); //插入模型数据
        }else{
            return $this->insert($data); //插入模型数据
        }
    }
}